package com.rui.cn.feignservice;


import com.baomidou.mybatisplus.service.IService;
import com.rui.cn.consumer.common.FeignClientConfig;
import com.rui.cn.entity.system.SysRoleMenu;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 * 角色菜单 服务类
 * </p>
 *
 * @author zhang123
 * @since 2018-01-14
 */
@FeignClient(value="CLOUD-ZUUL-GATEWAY",configuration=FeignClientConfig.class)
public interface  SysRoleMenuService{

    @PostMapping(value = "/cloud/permission-proxy/sysrolemenu/saveRoleMenu")
    Integer saveRoleMenu(@RequestParam("ids") Integer[] ids,@RequestParam("roleid") Integer roleid);

    @DeleteMapping(value = "/cloud/permission-proxy/sysrolemenu/deleteByMap")
    void deleteByMap(@RequestBody Map<String, Object> map);
}
